package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.Currency;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CurrencyRepository extends JpaRepository<Currency, Long> {

    Currency findFirstByName(String name);

    List<Currency> queryByStateEquals(Integer state);
}
